<template>
  <div>
    <TopNav title="精彩跟帖" :bgc="$colorObj.color" />
    <div class="main">
      <Comment v-for="(item) in commentList" :key="item.id" :commentData="item" />
    </div>
  </div>
</template>

<script>
import TopNav from "@/components/TopNav";
import Comment from "@/components/comment/Main";
export default {
  components: {
    TopNav,
    Comment
  },
  data() {
    return {
      commentList: []
    }
  },
  created() {
    this.$axios({
      url: "/post_comment/" + this.$route.params.id,
    }).then(res => {
      this.commentList = res.data.data;
    });
  }
};
</script>

<style lang="less" scoped>
.main {
  padding-top: 46 / 360 * 100vw;
}
</style>